home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / javax / management / MBeanParameterInfo.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.7 KB  |  48 lines

  1. package javax.management;
  2.  
  3. public class MBeanParameterInfo extends MBeanFeatureInfo implements Cloneable {
  4.    static final long serialVersionUID = 7432616882776782338L;
  5.    static final MBeanParameterInfo[] NO_PARAMS = new MBeanParameterInfo[0];
  6.    private final String type;
  7.  
  8.    public MBeanParameterInfo(String var1, String var2, String var3) {
  9.       this(var1, var2, var3, (Descriptor)null);
  10.    }
  11.  
  12.    public MBeanParameterInfo(String var1, String var2, String var3, Descriptor var4) {
  13.       super(var1, var3, var4);
  14.       this.type = var2;
  15.    }
  16.  
  17.    public Object clone() {
  18.       try {
  19.          return super.clone();
  20.       } catch (CloneNotSupportedException var2) {
  21.          return null;
  22.       }
  23.    }
  24.  
  25.    public String getType() {
  26.       return this.type;
  27.    }
  28.  
  29.    public String toString() {
  30.       return this.getClass().getName() + "[" + "description=" + this.getDescription() + ", " + "name=" + this.getName() + ", " + "type=" + this.getType() + ", " + "descriptor=" + this.getDescriptor() + "]";
  31.    }
  32.  
  33.    public boolean equals(Object var1) {
  34.       if (var1 == this) {
  35.          return true;
  36.       } else if (!(var1 instanceof MBeanParameterInfo)) {
  37.          return false;
  38.       } else {
  39.          MBeanParameterInfo var2 = (MBeanParameterInfo)var1;
  40.          return var2.getName().equals(this.getName()) && var2.getType().equals(this.getType()) && var2.getDescription().equals(this.getDescription()) && var2.getDescriptor().equals(this.getDescriptor());
  41.       }
  42.    }
  43.  
  44.    public int hashCode() {
  45.       return this.getName().hashCode() ^ this.getType().hashCode();
  46.    }
  47. }
  48.